nbd: use loff_t for blocksize and nbd_set_size args
authorJosef Bacik <jbacik@fb.com>
Fri, 2 Dec 2016 21:19:12 +0000 (16:19 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 27 Feb 2017 15:58:07 +0000 (15:58 +0000)
commit8428fb52f449b6258d4e0e85e24bfc9dc3c11328
tree0e459da47ecac7e060b761abf15a550819055da7
parentfe7340beef8d4fbcd561b98a9abb890e813b8169
nbd: use loff_t for blocksize and nbd_set_size args

If we have large devices (say like the 40t drive I was trying to test with) we
will end up overflowing the int arguments to nbd_set_size and not get the right
size for our device.  Fix this by using loff_t everywhere so I don't have to
think about this again.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
[bwh: Backported to 4.9: adjust context]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name nbd-use-loff_t-for-blocksize-and-nbd_set_size-args.patch
drivers/block/nbd.c